<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Optimist Racing: C:/Users/Owner/My Programming/Personal Projects/VideoGames/Optimist Racing/src/ElectricColour.hpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Optimist Racing
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">A video game where you must literally keep your head up</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_electric_colour_8hpp.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">ElectricColour.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;iostream&gt;</code><br/>
</div>
<p><a href="_electric_colour_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a9563b67c4aa0439e69914b8cd01d2c1f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_electric_colour_8hpp.html#a9563b67c4aa0439e69914b8cd01d2c1f">ELECTRICCOLOUR_NUM</a>&#160;&#160;&#160;8</td></tr>
<tr class="separator:a9563b67c4aa0439e69914b8cd01d2c1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a1979e84576b59c4d100d8a8cc41de734"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> { <br/>
&#160;&#160;<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734a14ca692c5fe0be2df7f983b5629e9cf4">ELECTRICCOLOUR_BLACK</a> = 0x0, 
<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734a8fc5b54a0310cc5c523ab8849e820b9f">ELECTRICCOLOUR_RED</a> = 0x1, 
<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734ae92739fbff1a809982d681fdb23e1a27">ELECTRICCOLOUR_GREEN</a> = 0x2, 
<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734a222922af5374f90b0e34551443988ab2">ELECTRICCOLOUR_YELLOW</a> = 0x3, 
<br/>
&#160;&#160;<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734a0aaff4a9b367c0e362e106bb14b675ff">ELECTRICCOLOUR_BLUE</a> = 0x4, 
<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734a2764b03e27f901e659db908c5fd6e695">ELECTRICCOLOUR_MAGENTA</a> = 0x5, 
<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734abe11e623e33963bd2c1509f005e26b2b">ELECTRICCOLOUR_CYAN</a> = 0x6, 
<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734a93b18326112704fc67a7a5b20e350b22">ELECTRICCOLOUR_WHITE</a> = 0x7
<br/>
 }</td></tr>
<tr class="memdesc:a1979e84576b59c4d100d8a8cc41de734"><td class="mdescLeft">&#160;</td><td class="mdescRight">A set of 8 colours that affect the physics of the game.  <a href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">More...</a><br/></td></tr>
<tr class="separator:a1979e84576b59c4d100d8a8cc41de734"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:af1d4177c474974362dbd0b8bd532f54f"><td class="memItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_electric_colour_8hpp.html#af1d4177c474974362dbd0b8bd532f54f">operator&lt;&lt;</a> (std::ostream &amp;out, const <a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> ecol)</td></tr>
<tr class="memdesc:af1d4177c474974362dbd0b8bd532f54f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Outputs the character representation of <em>ecol</em> to <em>out</em>.  <a href="#af1d4177c474974362dbd0b8bd532f54f"></a><br/></td></tr>
<tr class="separator:af1d4177c474974362dbd0b8bd532f54f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1964467d6938e25d600d61f7f83a31bf"><td class="memItemLeft" align="right" valign="top">std::istream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_electric_colour_8hpp.html#a1964467d6938e25d600d61f7f83a31bf">operator&gt;&gt;</a> (std::istream &amp;in, <a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> &amp;ecol)</td></tr>
<tr class="memdesc:a1964467d6938e25d600d61f7f83a31bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads in the character representation of <em>ecol</em> from <em>in</em>.  <a href="#a1964467d6938e25d600d61f7f83a31bf"></a><br/></td></tr>
<tr class="separator:a1964467d6938e25d600d61f7f83a31bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91e81cee67c59cecb311503463c2125d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_electric_colour_8hpp.html#a91e81cee67c59cecb311503463c2125d">operator~</a> (<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c)</td></tr>
<tr class="memdesc:a91e81cee67c59cecb311503463c2125d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inverts the ElectricColour <em>c</em>.  <a href="#a91e81cee67c59cecb311503463c2125d"></a><br/></td></tr>
<tr class="separator:a91e81cee67c59cecb311503463c2125d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4b285ef9e9cdb68cdabeac0b1dab616"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_electric_colour_8hpp.html#ae4b285ef9e9cdb68cdabeac0b1dab616">operator&amp;</a> (<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c1, <a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c2)</td></tr>
<tr class="memdesc:ae4b285ef9e9cdb68cdabeac0b1dab616"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the intersection of two ElectricColours.  <a href="#ae4b285ef9e9cdb68cdabeac0b1dab616"></a><br/></td></tr>
<tr class="separator:ae4b285ef9e9cdb68cdabeac0b1dab616"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6868414f583a0227d1232f9dee611fbb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_electric_colour_8hpp.html#a6868414f583a0227d1232f9dee611fbb">operator|</a> (<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c1, <a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c2)</td></tr>
<tr class="memdesc:a6868414f583a0227d1232f9dee611fbb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the union of two ElectricColours.  <a href="#a6868414f583a0227d1232f9dee611fbb"></a><br/></td></tr>
<tr class="separator:a6868414f583a0227d1232f9dee611fbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b80adef6ab9b9cb7cb4f84bbb2011c1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_electric_colour_8hpp.html#a8b80adef6ab9b9cb7cb4f84bbb2011c1">operator^</a> (<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c1, <a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c2)</td></tr>
<tr class="memdesc:a8b80adef6ab9b9cb7cb4f84bbb2011c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the element-wise XOR of <em>c1</em> and <em>c2</em>.  <a href="#a8b80adef6ab9b9cb7cb4f84bbb2011c1"></a><br/></td></tr>
<tr class="separator:a8b80adef6ab9b9cb7cb4f84bbb2011c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af273b48501b0de5d9be6396c90e9f550"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_electric_colour_8hpp.html#af273b48501b0de5d9be6396c90e9f550">operator-</a> (<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c1, <a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c2)</td></tr>
<tr class="memdesc:af273b48501b0de5d9be6396c90e9f550"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the subtraction of two ElectricColours.  <a href="#af273b48501b0de5d9be6396c90e9f550"></a><br/></td></tr>
<tr class="separator:af273b48501b0de5d9be6396c90e9f550"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a848cdfca5532396af5037dfa4eb45963"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_electric_colour_8hpp.html#a848cdfca5532396af5037dfa4eb45963">operator!</a> (<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c)</td></tr>
<tr class="memdesc:a848cdfca5532396af5037dfa4eb45963"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines whether <em>c</em> is BLACK.  <a href="#a848cdfca5532396af5037dfa4eb45963"></a><br/></td></tr>
<tr class="separator:a848cdfca5532396af5037dfa4eb45963"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af664e90924bd5a7f58472b1e63b22539"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_electric_colour_8hpp.html#af664e90924bd5a7f58472b1e63b22539">operator&amp;&amp;</a> (<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c1, <a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c2)</td></tr>
<tr class="memdesc:af664e90924bd5a7f58472b1e63b22539"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines whether <em>c1</em> and <em>c2</em> share a basic colour.  <a href="#af664e90924bd5a7f58472b1e63b22539"></a><br/></td></tr>
<tr class="separator:af664e90924bd5a7f58472b1e63b22539"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8562ffdba84f04961059cf5e05f84454"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_electric_colour_8hpp.html#a8562ffdba84f04961059cf5e05f84454">operator||</a> (<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c1, <a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c2)</td></tr>
<tr class="memdesc:a8562ffdba84f04961059cf5e05f84454"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines whether <em>c1</em> and <em>c2</em> are not both BLACK.  <a href="#a8562ffdba84f04961059cf5e05f84454"></a><br/></td></tr>
<tr class="separator:a8562ffdba84f04961059cf5e05f84454"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefec5b7d4bc4397fe898d7c9d11fc695"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_electric_colour_8hpp.html#aefec5b7d4bc4397fe898d7c9d11fc695">operator&lt;</a> (<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c1, <a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c2)</td></tr>
<tr class="memdesc:aefec5b7d4bc4397fe898d7c9d11fc695"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines whether <em>c1</em> is a proper subset of <em>c2</em>.  <a href="#aefec5b7d4bc4397fe898d7c9d11fc695"></a><br/></td></tr>
<tr class="separator:aefec5b7d4bc4397fe898d7c9d11fc695"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a373043b3c5688d1a8cd65adb2849125a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_electric_colour_8hpp.html#a373043b3c5688d1a8cd65adb2849125a">operator&lt;=</a> (<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c1, <a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c2)</td></tr>
<tr class="memdesc:a373043b3c5688d1a8cd65adb2849125a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines whether <em>c1</em> is a subset of <em>c2</em>.  <a href="#a373043b3c5688d1a8cd65adb2849125a"></a><br/></td></tr>
<tr class="separator:a373043b3c5688d1a8cd65adb2849125a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad03bdfc78320f02c613ce4da319d1e06"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_electric_colour_8hpp.html#ad03bdfc78320f02c613ce4da319d1e06">operator&gt;</a> (<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c1, <a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c2)</td></tr>
<tr class="memdesc:ad03bdfc78320f02c613ce4da319d1e06"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines whether <em>c1</em> is a proper superset of <em>c2</em>.  <a href="#ad03bdfc78320f02c613ce4da319d1e06"></a><br/></td></tr>
<tr class="separator:ad03bdfc78320f02c613ce4da319d1e06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e931082bbb2c3bc25699efb44064deb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_electric_colour_8hpp.html#a1e931082bbb2c3bc25699efb44064deb">operator&gt;=</a> (<a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c1, <a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> c2)</td></tr>
<tr class="memdesc:a1e931082bbb2c3bc25699efb44064deb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines whether <em>c1</em> is a superset of <em>c2</em>.  <a href="#a1e931082bbb2c3bc25699efb44064deb"></a><br/></td></tr>
<tr class="separator:a1e931082bbb2c3bc25699efb44064deb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a9563b67c4aa0439e69914b8cd01d2c1f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ELECTRICCOLOUR_NUM&#160;&#160;&#160;8</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="a1979e84576b59c4d100d8a8cc41de734"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A set of 8 colours that affect the physics of the game. </p>
<p>There are 8 ElectricColours. There are 3 basic colours: red, green and blue. You can think of an ElectricColour as a subset of the set {red, green, blue}. BLACK = {}. RED = {red}. GREEN = {green}. BLUE = {blue}. YELLOW = {red, green}. MAGENTA = {red, blue}. CYAN = {green, blue}. WHITE = {red, green, blue}. 2 objects of ElectricColours X and Y can interact with other if and only if they share one of the 3 basic colours. In other words they can interact with each other if and only if <img class="formulaInl" alt="$ X \bigcap Y \neq \emptyset $" src="form_1.png"/>. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a1979e84576b59c4d100d8a8cc41de734a14ca692c5fe0be2df7f983b5629e9cf4"></a>ELECTRICCOLOUR_BLACK</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a1979e84576b59c4d100d8a8cc41de734a8fc5b54a0310cc5c523ab8849e820b9f"></a>ELECTRICCOLOUR_RED</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a1979e84576b59c4d100d8a8cc41de734ae92739fbff1a809982d681fdb23e1a27"></a>ELECTRICCOLOUR_GREEN</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a1979e84576b59c4d100d8a8cc41de734a222922af5374f90b0e34551443988ab2"></a>ELECTRICCOLOUR_YELLOW</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a1979e84576b59c4d100d8a8cc41de734a0aaff4a9b367c0e362e106bb14b675ff"></a>ELECTRICCOLOUR_BLUE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a1979e84576b59c4d100d8a8cc41de734a2764b03e27f901e659db908c5fd6e695"></a>ELECTRICCOLOUR_MAGENTA</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a1979e84576b59c4d100d8a8cc41de734abe11e623e33963bd2c1509f005e26b2b"></a>ELECTRICCOLOUR_CYAN</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a1979e84576b59c4d100d8a8cc41de734a93b18326112704fc67a7a5b20e350b22"></a>ELECTRICCOLOUR_WHITE</em>&nbsp;</td><td>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a848cdfca5532396af5037dfa4eb45963"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool operator! </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Determines whether <em>c</em> is BLACK. </p>
<p>Each ElectricColour represents a subset of the set {red, green, blue}. This function returns true if and only if <em>c</em> is the empty set, i.e. BLACK. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c</td><td>The ElectricColour that may or may not be BLACK. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if and only if <em>c</em> is BLACK. </dd></dl>

</div>
</div>
<a class="anchor" id="ae4b285ef9e9cdb68cdabeac0b1dab616"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> operator&amp; </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the intersection of two ElectricColours. </p>
<p>Each ElectricColour represents a subset of the set {red, green, blue}. This function returns an ElectricColour representing the intersection of the two arguments. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c1</td><td>The first ElectricColour. </td></tr>
    <tr><td class="paramname">c2</td><td>The second ElectricColour. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The intersection of <em>c1</em> and <em>c2</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="af664e90924bd5a7f58472b1e63b22539"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool operator&amp;&amp; </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Determines whether <em>c1</em> and <em>c2</em> share a basic colour. </p>
<p>Each ElectricColour represents a subset of the set {red, green, blue}. This function returns true if and only if there exists a basic colour which is in both <em>c1</em> and <em>c2</em>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c1</td><td>The first ElectricColour. </td></tr>
    <tr><td class="paramname">c2</td><td>The second ElectricColour. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if and only if <em>c1</em> and <em>c2</em> share a basic colour. </dd></dl>

</div>
</div>
<a class="anchor" id="af273b48501b0de5d9be6396c90e9f550"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> operator- </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the subtraction of two ElectricColours. </p>
<p>Each ElectricColour represents a subset of the set {red, green, blue}. This function returns an ElectricColour representing the subtraction of the two arguments. In other words, it returns an ElectricColour c3 such that for each basic colour c in {red, green, blue}, c3 contains c if and only if c1 contains c and c2 doesn't contain c. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c1</td><td>The first ElectricColour. </td></tr>
    <tr><td class="paramname">c2</td><td>The second ElectricColour. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The subtraction of <em>c1</em> and <em>c2</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="aefec5b7d4bc4397fe898d7c9d11fc695"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool operator&lt; </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Determines whether <em>c1</em> is a proper subset of <em>c2</em>. </p>
<p>Each ElectricColour represents a subset of the set {red, green, blue}. This function returns true if and only if c2 contains every basic colour that c1 contains and c1 contains strictly fewer basic colours than c2. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c1</td><td>The ElectricColour that may or may not be a proper subset of <em>c2</em>. </td></tr>
    <tr><td class="paramname">c2</td><td>The ElectricColour that may or may not be a proper superset of <em>c1</em>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if and only if <em>c1</em> is a proper subset of <em>c2</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="af1d4177c474974362dbd0b8bd532f54f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::ostream&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>ecol</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Outputs the character representation of <em>ecol</em> to <em>out</em>. </p>
<p>See <a class="el" href="_electric_colour_8cpp.html">ElectricColour.cpp</a> for the character representation of each ElectricColour. </p>
<dl class="section pre"><dt>Precondition</dt><dd><em>out</em> must be a working output stream. </dd></dl>
<dl class="section post"><dt>Postcondition</dt><dd><em>out</em> will be the same as before, except it will have the character representation of <em>ecol</em> written to it. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">out</td><td>The output stream where <em>ecol</em> will be written. </td></tr>
    <tr><td class="paramname">ecol</td><td>The ElectricColour to be written to <em>out</em>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A reference to the modified output stream <em>out</em>. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">Whatever</td><td><em>out</em> throws. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a373043b3c5688d1a8cd65adb2849125a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool operator&lt;= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Determines whether <em>c1</em> is a subset of <em>c2</em>. </p>
<p>Each ElectricColour represents a subset of the set {red, green, blue}. This function returns true if and only if c2 contains every basic colour that c1 contains. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c1</td><td>The ElectricColour that may or may not be a subset of <em>c2</em>. </td></tr>
    <tr><td class="paramname">c2</td><td>The ElectricColour that may or may not be a superset of <em>c1</em>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if and only if <em>c1</em> is a subset of <em>c2</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="ad03bdfc78320f02c613ce4da319d1e06"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool operator&gt; </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Determines whether <em>c1</em> is a proper superset of <em>c2</em>. </p>
<p>Each ElectricColour represents a subset of the set {red, green, blue}. This function returns true if and only if c1 contains every basic colour that c2 contains and c1 contains strictly more basic colours than c2. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c1</td><td>The ElectricColour that may or may not be a proper superset of <em>c2</em>. </td></tr>
    <tr><td class="paramname">c2</td><td>The ElectricColour that may or may not be a proper subset of <em>c1</em>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if and only if <em>c1</em> is a proper superset of <em>c2</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="a1e931082bbb2c3bc25699efb44064deb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool operator&gt;= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Determines whether <em>c1</em> is a superset of <em>c2</em>. </p>
<p>Each ElectricColour represents a subset of the set {red, green, blue}. This function returns true if and only if c1 contains every basic colour that c2 contains. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c1</td><td>The ElectricColour that may or may not be a superset of <em>c2</em>. </td></tr>
    <tr><td class="paramname">c2</td><td>The ElectricColour that may or may not be a subset of <em>c1</em>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if and only if <em>c1</em> is a superset of <em>c2</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="a1964467d6938e25d600d61f7f83a31bf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::istream&amp; operator&gt;&gt; </td>
          <td>(</td>
          <td class="paramtype">std::istream &amp;&#160;</td>
          <td class="paramname"><em>in</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> &amp;&#160;</td>
          <td class="paramname"><em>ecol</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads in the character representation of <em>ecol</em> from <em>in</em>. </p>
<p>See <a class="el" href="_electric_colour_8cpp.html">ElectricColour.cpp</a> for the character representation of each ElectricColour. </p>
<dl class="section pre"><dt>Precondition</dt><dd><em>in</em> must be a working input stream, of which the next character to be read (excluding spaces and newlines) is one of the 8 character representations of ElectricColours. </dd></dl>
<dl class="section post"><dt>Postcondition</dt><dd><em>in</em> will have advanced by one character (excluding spaces and newlines). <em>ecol</em> will have the value that was read from <em>in</em>. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">in</td><td>The input stream from which <em>ecol</em> will be read. </td></tr>
    <tr><td class="paramname">ecol</td><td>A reference to the ElectricColour that will store what was read from <em>in</em>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A reference to the modified input stream <em>in</em>. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">Whatever</td><td><em>in</em> throws. Also throws an exception if the character read from <em>in</em> is not one of the 8 character representations above. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8b80adef6ab9b9cb7cb4f84bbb2011c1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> operator^ </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the element-wise XOR of <em>c1</em> and <em>c2</em>. </p>
<p>Each ElectricColour represents a subset of the set {red, green, blue}. This function returns an ElectricColour c3 such that for each basic colour c, c3 contains c if and only if c1 contains c XOR c2 contains c. E.g. MAGENTA ^ CYAN = YELLOW. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c1</td><td>The first ElectricColour. </td></tr>
    <tr><td class="paramname">c2</td><td>The second ElectricColour. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The bitwise XOR of <em>c1</em> and <em>c2</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="a6868414f583a0227d1232f9dee611fbb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> operator| </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the union of two ElectricColours. </p>
<p>Each ElectricColour represents a subset of the set {red, green, blue}. This function returns an ElectricColour representing the union of the two arguments. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c1</td><td>The first ElectricColour. </td></tr>
    <tr><td class="paramname">c2</td><td>The second ElectricColour. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The union of <em>c1</em> and <em>c2</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="a8562ffdba84f04961059cf5e05f84454"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool operator|| </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Determines whether <em>c1</em> and <em>c2</em> are not both BLACK. </p>
<p>Each ElectricColour represents a subset of the set {red, green, blue}. This function returns true if and only if the union of <em>c1</em> and  is non-empty, i.e. <em>c1</em> and <em>c2</em> are not both BLACK. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c1</td><td>The first ElectricColour. </td></tr>
    <tr><td class="paramname">c2</td><td>The second ElectricColour. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if and only if either <em>c1</em> or <em>c2</em> is not BLACK. </dd></dl>

</div>
</div>
<a class="anchor" id="a91e81cee67c59cecb311503463c2125d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a> operator~ </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_electric_colour_8hpp.html#a1979e84576b59c4d100d8a8cc41de734">E_ELECTRICCOLOUR</a>&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Inverts the ElectricColour <em>c</em>. </p>
<p>Each ElectricColour represents a subset of the set {red, green, blue}. This function returns the subtraction: white - <em>c</em>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c</td><td>The ElectricColour to be inverted. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The result of the subtraction: white - <em>c</em>. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="_electric_colour_8hpp.html">ElectricColour.hpp</a></li>
    <li class="footer">Generated on Sun Oct 28 2012 13:14:15 for Optimist Racing by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
